<?php

namespace Database\Factories;

use App\Models\Agent;
use Faker\Generator;
use Illuminate\Database\Eloquent\Factories\Factory;

class AgentFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = Agent::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'name' => $this->faker->name(),
            'agent_level_id' => $this->faker->randomElement([0, 1]),
            'mob' => 135555555,
            'realname' => $this->faker->name(),
            'province' => $this->faker->name(),
            'city' => $this->faker->name(),
            'country' => $this->faker->name(),
            'address' => $this->faker->address(),
            'username' => $this->faker->userName(6),
            'password' => '111111',
            'cash' => rand(10000,99999),
            'status' => $this->faker->randomElement([0, 1]),
        ];
    }
}
